<!DOCTYPE html>
<html>
<head>
  <title><%= t('admin.title')%></title>

  <%= stylesheet_link_tag    "admin", media: "all"%>
  <%= javascript_include_tag "application", "data-turbolinks-track" => false %>
  <%= csrf_meta_tags %>
</head>
<body>

<header role="banner" class="navbar navbar-inverse navbar-fixed-top bs-docs-nav">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/cpanel">翎裴官网后台</a>
    </div>

    <nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
      <ul class="nav navbar-nav">
        <li><%= link_to 'Banner管理', cpanel_banners_path %></li>
        <li class="dropdown">
          <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:void(0)">
            新闻管理 <b class="caret"></b>
          </a>
          <ul class="dropdown-menu">
            <li><%= link_to '添加新闻', new_cpanel_post_path %></li>
            <li><%= link_to '新闻列表', cpanel_posts_path %></li>
          </ul>
        </li>

        <li class="dropdown">
          <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:void(0)">
            产品管理 <b class="caret"></b>
          </a>
          <ul class="dropdown-menu">
            <li><%= link_to '添加产品', new_cpanel_product_path %></li>
            <li><%= link_to '产品列表', cpanel_products_path %></li>
          </ul>
        </li>

        <li class="dropdown">
          <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:void(0)">
            招聘管理 <b class="caret"></b>
          </a>
          <ul class="dropdown-menu">
            <li><%= link_to '添加招聘', new_cpanel_job_path %></li>
            <li><%= link_to '招聘列表', cpanel_jobs_path %></li>
          </ul>
        </li>

        <li class="dropdown">
          <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:void(0)">
            系统设置 <b class="caret"></b>
          </a>
          <ul class="dropdown-menu">
            <li><%= link_to '公司简介', "/cpanel/introduces/show/description/1" %></li>
            <li><%= link_to '服务介绍', "/cpanel/introduces/show/service/1" %></li>
            <li><%= link_to '客户案例', "/cpanel/introduces/show/customer/1" %></li>
            <li><%= link_to '合作伙伴', "/cpanel/introduces/show/partner/1" %></li>
            <li><%= link_to '联系我们', "/cpanel/contacts/show/1" %></li>
            <li><%= link_to '修改密码', [:edit, :cpanel, current_user] %></li>
          </ul>
        </li>


      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
          <b class="caret"></b>
        </a>
        <ul class="dropdown-menu">
          <li><%= link_to '退出', quit_path %></a></li>
      </ul>
      </li>
    </ul>
  </div>
</header>

<div class="admin-index">
  <div class="container">

    <%= yield %>

  </div>
</div>
</body>
</html>
